<?php
require_once 'includes/haut.php';
acces($niveau,1);
header("Content-Type: text/plain");

if(isset($_GET["idC"]) && is_numeric($_GET["idC"])){
	if ($usager=utilisateur::getClientById($_GET["idC"])){
?>
	<div class="details">
		<h2>Fiche client</h2>
		<table>			
	       	<tr>
	       		<th>Nom :</th>
 				<td><?php echo $usager['nom']; ?></td>  
	 		</tr>
	 		<tr>
    	  		<th>Pr&eacute;nom : </th>
      			<td><?php echo $usager['prenom'];  ?></td>
      		</tr>
      		<tr>
    	  		<th>Pseudonyme : </th>
      			<td><?php echo $usager['nomUsager'];  ?></td>
      		</tr>
      		<tr>
	      		<th>E-mail : </th>
      			<td><?php echo $usager['email'];  ?> </td>
      		</tr>
      		<tr>
	      		<th>Date de naissance :</th>
	      		<td><?php echo $usager['dateNaissance'];  ?> </td>
       		</tr>
       		<tr>
	      		<th>Sexe :</th>
      			<td><?php if ($usager['sexe'] =="f") echo "Femme";
      					else echo "Homme";  ?></td>
      		</tr>
			<tr>
	      		<th>Date d'inscription :</th>
      			<td><?php echo $usager['dateInscription'];  ?></td>
      		</tr>
      		
    	</table>
    
    	<?php } else echo "client invalide";
    	} else echo "client invalide";
?>
	</div>
	<div class="close"><img src="images/icones/close.png" alt="fermer" title="Fermer"/></div>